﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Controls_AdminCheck : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie cookie = Request.Cookies["adminCack"];
        if (cookie != null)
        {
            //string username = cookie["Username"];
            //string pwd = cookie["Pwd"];
            //Admin admins = new Admin();
            //int s = admins.CheckAdminRetInt(username, pwd);
            //if (s != 1)
            //{
            //    Response.Redirect("~/admin/Admin_Login.aspx");
            //}
        }
        else
        {
            Response.Redirect("~/admin/Admin_Login.aspx");
        }
    }
}
